package aiguigu08.constructor.exer2;

/**
 * ClassName: TriAngleTest
 * Package: aiguigu08.constructor
 * Description:
 *
 * @Author ZY
 * @Create 2024/10/11 22:01
 * @Version 1.0
 */
public class TriAngleTest {
    public static void main(String[] args) {
        TriAngle t1 = new TriAngle();

        t1.setHeight(2.3);
        t1.setBase(3.4);

        System.out.println("面积: " + t1.findArea());

        TriAngle t2 = new TriAngle(2.4,4.5);
        System.out.println("base : " + t2.getBase());
        System.out.println("height : " + t2.getHeight());
        System.out.println("面积 : " + t2.findArea());
    }
}
